package com.demo.component.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@RefreshScope //允许动态刷新配置
@Component
public class Properties {
    @Value("${basePath}")
    private String basePath;

    @Value("${baseRes}")
    private String baseRes;

    @Value("${name}")
    private String name;

    public String getBasePath() {
        return basePath;
    }

    public void setBasePath(String basePath) {
        this.basePath = basePath;
    }

    public String getBaseRes() {
        return baseRes;
    }

    public void setBaseRes(String baseRes) {
        this.baseRes = baseRes;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
